<%--
 - Copyright (c) 2009-2011 ETCORE Labs. All rights reserved. 
 - 
 - This software is the confidential and proprietary information of ETCORE Labs. 
 - You shall not disclose such confidential information and shall use it only
 - in accordance with the terms of the license agreement you entered into
 - with ETCORE Labs.
 -
 - Support can be obtained from support forums at:
 - http://www.etcore.com/
 -
 - @author: ETCORE GroupTalk developers
 -
 --%>
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://jakarta.apache.org/taglibs/core" prefix="c"%>
<%@ taglib uri="http://www.etcore.com/grouptalk" prefix="grouptalk"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><c:out value="${context.title }" /></title>
<link rel="stylesheet" href="/group/css/styles.css" type="text/css">
<link rel="stylesheet"
	href="/group/ui-component/chart/styles/flowchart.css" type="text/css">
<script>
var width=window.screen.width;
var out_width="50%";
var n=2;
if(width>=1600){
n=3;
out_width="33.3%";
}else if(width<=800){
n=1;
out_width="100%";	
}
</script>
<script>
function setReminderWidth(){
	 var middleFrame=document.getElementById("middleFrame");
	// var eventFrame=document.getElementById("eventFrame");
	// var frames=eventFrame.getElementsByTagName("Iframe");
	var bodyWidth=document.body.clientWidth;
	var windowWidth=window.screen.width;
	var width=850;
	if(bodyWidth>width) width= bodyWidth-25;
	if(width>windowWidth-100) width=windowWidth-100;
	//for(var i=0;i<frames.length;i++)
	//frames[i].style.width='100%';
 

 
	middleFrame.style.width=width-480;
 

	if(width-480>350) {middleFrame.style.width='100%';}
}
 
</script>

</head>


<body bottomMargin=0 leftMargin=10 topMargin=0 rightMargin=10
	onResize="setReminderWidth()" marginheight="0">
<c:import url="/group/ui-component/divdialog/divdialog.html" />
<TABLE cellSpacing=0 cellPadding=0 width=100% border=0 align=center>
	<%-- //////////////////////banner --%>
	<tr>
		<td><c:import url="/banner.jsp" /></td>
	</tr>
	<%--////////////////////// mid --%>
	<tr>
		<td width=100%>
		<table width=100% cellSpacing=0 cellPadding=0>

			<tr>


				<td width=100%>
				<table width=100% cellSpacing=0 cellPadding=0>
					<tr>
						<c:if test="${context.left!=0 }">
							<td valign=top width=240 style="background: #ffffff"><c:import
								url="/group/groupdata_left.jsp" /></td>
						</c:if>

						<td valign=top width=100%>
						<div id=middleFrame style="width: 100%; background: white">
						<table width=100% cellspacing=4>
						<c:set var="count" value="0" />
							<c:forEach begin="1" end="8" step="1">
							<c:set var="count" value="${count+1}" />
								<c:if test="${ context.main_messages==count}">
									<tr>
										<td width=50% valign=top><c:import
											url="/group/groupdata_center_latest.jsp" /></td>
										<td width=50% valign=top><%-- <c:import url="/group/groupdata_center_offerpie.jsp" />--%>
										<c:import url="/group/groupdata_center_hottest.jsp" /></td>
									</tr>
								</c:if>
								<c:if test="${context.p11&&context.main_nav1==count}">
									<tr>
										<td colspan=2 width=100%><c:import
											url="/group/groupdata_active_about.jsp" /></td>

									</tr>
								</c:if>
								<c:if test="${context.p1&&context.main_platform1==count}">
									<tr>
										<td colspan=2 width=100%><c:import
											url="/group/groupdata_active_news.jsp" /></td>

									</tr>
								</c:if>

								<c:if test="${context.p2&&context.main_platform2==count}">
									<tr>
										<td colspan=2 width=100%><c:import
											url="/group/groupdata_active_community.jsp" /></td>

									</tr>
								</c:if>
								<c:if test="${context.p2&&context.main_nav2==count}">
									<tr>
										<td colspan=2 width=100%><c:import
											url="/group/groupdata_active_feedback.jsp" /></td>

									</tr>
								</c:if>
								<c:if test="${context.p4&&context.main_platform4==count}">
									<tr>
										<td colspan=2 width=100%><c:import
											url="/group/calendars.jsp" /></td>

									</tr>
								</c:if>
								<c:if test="${ context.main_users==count}">
									<tr>
										<td width=50% valign=top><c:import
											url="/group/groupdata_center_collections.jsp" /></td>


										<td width=50% valign=top><c:import
											url="/group/groupdata_center_focus.jsp" /></td>
									</tr>
								</c:if>
							</c:forEach>
						</table>
						</div>

						</td>


					</tr>


				</table>
				</td>
			</tr>
		</table>

		</td>
	</tr>





	<tr>
		<td><BR>
		<BR>
		<c:import url="/footer.jsp" /></td>
	</tr>





	</TBODY>
</TABLE>
<script>setReminderWidth()</script>
</body>
</html>

